import React from "react";
import TextEditor from "./TextEditor";
import TextEditorV2 from "./TextEditorV2";
import { Route, Routes,Navigate} from 'react-router-dom'
const App = ()=>{
    return (
        <Routes>
            <Route path={'/v1'} element={<TextEditor />} />
            <Route path={'/v2'} element={<TextEditorV2 />} />
            <Route path={'/*'} element={<Navigate to="/v1" />} />
        </Routes>
    )
}
export default App